import random
import numpy as np

siz=1000000
localpath='./data.txt'
datapath='D:/alanLocal/myPrograms/c++prj/source/repos/AlgorF_MergeOrdering/AlgorF_MergeOrdering/data.txt' 
form=np.zeros(siz)
print(form)

for i in range(0,siz):
    rdm=int(random.random()*100000)
    form[i]=rdm

print(form[0:siz])
# for i in range(0,siz):
#     print(form[i])

with open(datapath,'w') as file:
    file.write(' '.join(map(str, form[0:siz].astype(int) )))
